package org.dingfugui.triple.core.util;

import java.io.Closeable;
import java.io.IOException;

/**
 * Created by fugui.ding on 2015/3/31.
 */
public class IOUtil {
    public static boolean close(Closeable... os) {
        boolean f = true;
        for (Closeable o : os) {
            if (null != o) {
                try {
                    o.close();
                    o = null;
                } catch (IOException e) {
                    e.printStackTrace();
                    f = false;
                }
            }
        }
        return f;
    }
}
